import 'package:zz_listen_english/common/api/http_head.dart';

import '../../services/wp_http.dart';

/// 用户 api
class UserApi {
  ///登录
  static Future<Map<String, dynamic>> login(data) async {
    var res = await WPHttpService.to.post(
      "${HttpHead.getHttpHead()}/sysUser/login",
      data: data,
    );
    var aa = res.data;
    return aa;
  }

  /// 获取人员信息
  static Future<Map<String, dynamic>> userInfo() async {
    var res = await WPHttpService.to.post(
      "${HttpHead.getHttpHead()}/sysUser/info",
      data: {},
    );
    Map<String, dynamic> aa = res.data;

    return aa;
  }
}
